/* Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

package com.riq.entity;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class Icon implements Serializable {
  	
  private static final long serialVersionUID = 1L;
  
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return null;
	}

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long iconId;	
	
  @Persistent
  private Long deptId;
	
  @Persistent
  private String shortName;
	
  @Persistent
  private String longName; 
	
  @Persistent
  private String type;
	
  @Persistent
  private String bcolor;
	 
  @Persistent
  private String fcolor;
	
  @Persistent
  int padT;
	
  @Persistent
  int padB;
	
  @Persistent
  int padL;
	
  @Persistent
  int padR;
	
  public Icon(Long deptId, String shortName, String longName, 
	            String type, String bcolor, String fcolor, 
	            int padT, int padB, int padL, int padR) {
	 this.deptId = deptId;
	 this.shortName = shortName;
	 this.longName = longName;
	 this.type = type; 
     this.bcolor = bcolor;  
	 this.fcolor = fcolor;
	 this.padT = padT;
	 this.padL = padL;
	 this.padR = padR;
	  }
	
// GETS

  public Long getid() {
	return iconId;
  }

  public Long getdeptId() {
	return deptId;
  }

  public String getshortName() {
	return shortName;
  }

  public String getlongName() {
	return longName;
  }
	
  public String gettype() {
	return type;
  }
	 
  public String getbcolor() {
    return bcolor;
  }
  
  public String getfcolor() {
	return fcolor;
  }
	
  public int getpadT() {
	return padT;
  }
	 
  public int getpadB() {
    return padB;
  }
  
  public int getpadL() {
    return padL;
  }
  
  public int getpadR() {
    return padR;
  }

// SETS
	
  public void setdeptId(Long deptId) {
	this.deptId = deptId;
  }
	
  public void setshortName(String shortName) {
	this.shortName = shortName;
  }
	
  public void setlongName(String longName) {
    this.longName = longName;
  }
	
  public void settype(String type) {
	this.type = type;
  } 

  public void setbcolor(String bcolor) {
    this.bcolor = bcolor;
  }
  
  public void setfcolor(String fcolor) {
	this.fcolor = fcolor;
  }
	
  public void setpadT(int padT) {
    this.padT = padT;
  }
	 
  public void setpadB(int padB) {
 	this.padB = padB;
  }
	
  public void setpadL(int padL) {
    this.padL = padL;
  }
   
  public void setpadR(int padR) {
    this.padR = padR;
  }
	
}